package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class GetHeaderInformationList {

    private int beginIndex;
    private int endIndex;
    private List<GetHeaderInformation> getHeaderInformationList;

    public GetHeaderInformationList(List<GetHeaderInformation> getHeaderInformationList) {
        this.beginIndex = getHeaderInformationList.get(0).getBeginIndex();
        this.endIndex = getHeaderInformationList.get(getHeaderInformationList.size() - 1).getEndIndex();
        this.getHeaderInformationList = getHeaderInformationList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return getHeaderInformationList.size();
    }

    public GetHeaderInformation get(int index) {
        return getHeaderInformationList.get(index);
    }

}
